how to convert inputstream and byte array to multipart file in java